<script>
import Content from './content'
export default {
  name: 'tabs',
  data () {
    return {
      showContent: []
    }
  },
  components: {
    Content
  },
  props: {
    defaultActiveKey: {
      type: String,
      default: '1'
    }
  },
  render () {
    return (
        <div>
          <ul class="tabs-header">{this.$slots.default}</ul>
          <Content showContent={this.showContent}></Content>
        </div>
    )
  },
  methods: {
    updatedefaultActiveKey (index) {
      this.$emit('callback', index)
    }
  }
}
</script>

<style  scoped>
.tabs-header{
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 2px solid #ededed;
}
</style>
